namespace Delphi.Mimir.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class FixFxRateMap : DbMigration
    {
        public override void Up()
        {
            DropIndex("fin.eod_fx_rates", new[] { "fxr_sym_1_id" });
            DropIndex("fin.eod_fx_rates", new[] { "fxr_sym_2_id" });
            AlterColumn("fin.eod_fx_rates", "fxr_sym_1_id", c => c.Int());
            AlterColumn("fin.eod_fx_rates", "fxr_sym_2_id", c => c.Int());
            CreateIndex("fin.eod_fx_rates", "fxr_sym_1_id");
            CreateIndex("fin.eod_fx_rates", "fxr_sym_2_id");
        }
        
        public override void Down()
        {
            DropIndex("fin.eod_fx_rates", new[] { "fxr_sym_2_id" });
            DropIndex("fin.eod_fx_rates", new[] { "fxr_sym_1_id" });
            AlterColumn("fin.eod_fx_rates", "fxr_sym_2_id", c => c.Int(nullable: false));
            AlterColumn("fin.eod_fx_rates", "fxr_sym_1_id", c => c.Int(nullable: false));
            CreateIndex("fin.eod_fx_rates", "fxr_sym_2_id");
            CreateIndex("fin.eod_fx_rates", "fxr_sym_1_id");
        }
    }
}
